<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<%@ page session="false" %>
<html>
    <head>
        <title>Home</title>
    </head>
    <body>
        <h1>User List</h1>
        
        <p><a href="index.jsp">go to index page to continue insert a test user</a></p>
        <br/>
        <p><a href="findUser">find Users</a></p>
        
        <c:choose>
        <c:when test="${userList != null}"> 
        id + firstName + lastName + birthday
        <hr/>
        	<c:forEach var="user" items="${userList}">
				<p>
					  ${user.userId} + ${user.firstName} + ${user.lastName} + <fmt:formatDate pattern="yyyy/MM/dd" value="${user.birthday}"/> 
				</p>
			</c:forEach>
        </c:when>
        </c:choose>
    </body>
</html>